package com.shgsh.attribute.controller;

import com.shgsh.attribute.service.TestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by jessy on 2015/8/2.
 */
@Controller
@RequestMapping("/attribute")
public class AnalysisController {
    Logger log = LoggerFactory.getLogger(AnalysisController.class);

    @Autowired
    TestService testService;

    @RequestMapping(value = "/get", method = RequestMethod.GET)
    public String returnData(){
        testService.addUser();
        return "/analysis/first";
    }

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login(){
        log.debug("login ... ");
        return "/login";
    }
}
